package org.ccahouse.ccatrain.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.ccahouse.ccatrain.dto.UserDto;
import org.ccahouse.ccatrain.entity.User;
import org.ccahouse.ccatrain.vo.UserVo;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author kevin
 * @since 2020-07-04
 */
public interface UserMapper extends BaseMapper<User> {

    UserVo getUesrByParam(@Param("id") Integer id, String state);

    void saveUsers(List<UserDto> users);

    List<UserVo> getUsersByIds(List<Integer> ids);
}
